package com.example.service.Impl;

import com.example.mapper.ScoreMapper;
import com.example.mapper.TeachingMapper;
import com.example.pojo.TeachingStudentScoring;
import com.example.service.TeachingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeachingServiceImpl implements TeachingService {
    @Autowired
    private TeachingMapper teachingMapper;
    @Override
    public void addStudentScore(TeachingStudentScoring teachingStudentScoring) {
        teachingMapper.addScoreDetail(teachingStudentScoring);
    }

    @Override
    public TeachingStudentScoring query(Integer stuInClassId) {
        TeachingStudentScoring teachingStudentScoring = teachingMapper.query(stuInClassId);
        return teachingStudentScoring;
    }
}
